<?php

namespace Keio\StudyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Cauhoi
 */
class Cauhoi
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $tieude;

    /**
     * @var string
     */
    private $noidung;

    /**
     * @var integer
     */
    private $diem;

    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $baihoc_cauhoi;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->baihoc_cauhoi = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set tieude
     *
     * @param string $tieude
     * @return Cauhoi
     */
    public function setTieude($tieude)
    {
        $this->tieude = $tieude;

        return $this;
    }

    /**
     * Get tieude
     *
     * @return string
     */
    public function getTieude()
    {
        return $this->tieude;
    }

    /**
     * Set noidung
     *
     * @param string $noidung
     * @return Cauhoi
     */
    public function setNoidung($noidung)
    {
        $this->noidung = $noidung;

        return $this;
    }

    /**
     * Get noidung
     *
     * @return string
     */
    public function getNoidung()
    {
        return $this->noidung;
    }

    /**
     * Set diem
     *
     * @param integer $diem
     * @return Cauhoi
     */
    public function setDiem($diem)
    {
        $this->diem = $diem;

        return $this;
    }

    /**
     * Get diem
     *
     * @return integer
     */
    public function getDiem()
    {
        return $this->diem;
    }

    /**
     * Add baihoc_cauhoi
     *
     * @param \Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi
     * @return Cauhoi
     */
    public function addBaihocCauhoi(\Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi)
    {
        $this->baihoc_cauhoi[] = $baihocCauhoi;

        return $this;
    }

    /**
     * Remove baihoc_cauhoi
     *
     * @param \Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi
     */
    public function removeBaihocCauhoi(\Keio\StudyBundle\Entity\Baihoccauhoi $baihocCauhoi)
    {
        $this->baihoc_cauhoi->removeElement($baihocCauhoi);
    }

    /**
     * Get baihoc_cauhoi
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getBaihocCauhoi()
    {
        return $this->baihoc_cauhoi;
    }
    /**
     * @var \Keio\StudyBundle\Entity\Monhoc
     */
    private $monhoc;


    /**
     * Set monhoc
     *
     * @param \Keio\StudyBundle\Entity\Monhoc $monhoc
     * @return Cauhoi
     */
    public function setMonhoc(\Keio\StudyBundle\Entity\Monhoc $monhoc = null)
    {
        $this->monhoc = $monhoc;

        return $this;
    }

    /**
     * Get monhoc
     *
     * @return \Keio\StudyBundle\Entity\Monhoc
     */
    public function getMonhoc()
    {
        return $this->monhoc;
    }
    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $traloi;


    /**
     * Add traloi
     *
     * @param \Keio\StudyBundle\Entity\Cauhoitraloi $traloi
     * @return Cauhoi
     */
    public function addTraloi(\Keio\StudyBundle\Entity\Cauhoitraloi $traloi)
    {
        $this->traloi[] = $traloi;

        return $this;
    }

    /**
     * Remove traloi
     *
     * @param \Keio\StudyBundle\Entity\Cauhoitraloi $traloi
     */
    public function removeTraloi(\Keio\StudyBundle\Entity\Cauhoitraloi $traloi)
    {
        $this->traloi->removeElement($traloi);
    }

    /**
     * Get traloi
     *
     * @return \Doctrine\Common\Collections\Collection
     */
    public function getTraloi()
    {
        return $this->traloi;
    }
    /**
     * @var string
     */
    private $goiy;


    /**
     * Set goiy
     *
     * @param string $goiy
     * @return Cauhoi
     */
    public function setGoiy($goiy)
    {
        $this->goiy = $goiy;

        return $this;
    }

    /**
     * Get goiy
     *
     * @return string
     */
    public function getGoiy()
    {
        return $this->goiy;
    }
    /**
     * @var integer
     */
    private $loai;


    /**
     * Set loai
     *
     * @param integer $loai
     * @return Cauhoi
     */
    public function setLoai($loai)
    {
        $this->loai = $loai;

        return $this;
    }

    /**
     * Get loai
     *
     * @return integer
     */
    public function getLoai()
    {
        return $this->loai;
    }
    //lấy short noidung và goiy
    private $noidungshort;
    public function setNoidungshort($noidungshort){
    	$this->noidungshort = $noidungshort;
    }
    public function getNoidungshort(){
    	return $this->noidungshort;
    }
    private $goiyshort;
    public function setGoiyshort($goiyshort){
    	$this->goiyshort = $goiyshort;
    }
    public function getGoiyshort(){
    	return $this->goiyshort;
    }
    //dành cho form để delete
    private $delform;
    public function setDelform($delform){
    	$this->delform = $delform;
    }
    public function getDelform(){
    	return $this->delform;
    }
}